import request from '@/utils/request'

// 查询服务内容列表
export function listSvcontent(query) {
  return request({
    url: '/service/svcontent/list',
    method: 'get',
    params: query
  })
}

// 查询服务内容详细
export function getSvcontent(id) {
  return request({
    url: '/service/svcontent/' + id,
    method: 'get'
  })
}

// 新增服务内容
export function addSvcontent(data) {
  return request({
    url: '/service/svcontent',
    method: 'post',
    data: data
  })
}

// 修改服务内容
export function updateSvcontent(data) {
  return request({
    url: '/service/svcontent',
    method: 'put',
    data: data
  })
}

// 删除服务内容
export function delSvcontent(id) {
  return request({
    url: '/service/svcontent/' + id,
    method: 'delete'
  })
}
